import request from "@/request/index.js";

const auth = "auth"; //http://101.42.107.47:30019文档
const base = "base"; //http://101.42.107.47:30020文档
const zhpt = "zhpt"; //http://101.42.107.47:30018文档

//平台数据明细
export const dataDetailApi = (params) => {
    return request({
        url: `/api/${zhpt}/console/detail`,
        method: "get",
        params,
    });
};

//成果转化率
export const demandToAchievementApi = (params) => {
    return request({
        url: `/api/${zhpt}/console/conversion/detail`,
        method: "get",
        params,
    });
};

//用户活跃度
export const userActiveApi = (params) => {
    return request({
        url: `/api/${zhpt}/console/user/active`,
        method: "get",
        params,
    });
};

//用户分布区域统计分析
export const userAreaApi = (params) => {
    return request({
        url: `/api/${zhpt}/console/user/area`,
        method: "get",
        params,
    });
};

//平台用户热搜关键词分析
export const keywordsApi = (params) => {
    return request({
        url: `/api/${zhpt}/console/user/keyword`,
        method: "get",
        params,
    });
};